package com.softeem.yuedong_server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Schema(title = "用户信息")
@Data
public class User {
    /**用户id*/
    @Schema(title = "用户id")
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**用户名*/
    @Schema(title = "用户名")
    private String username;
    /**用户密码*/
    @Schema(title = "用户密码")
    private  String password;
    /**用户性别*/
    @Schema(title = "用户性别")
    private Integer sex;
    /**用户头像地址*/
    @Schema(title = "用户头像地址")
    private String url;
    /**用户生日*/
    @Schema(title = "用户生日")
    private LocalDate birthday;
    /**用户注册时间*/
    @Schema(title = "用户注册时间")
    private LocalDateTime regtime;
}
